// EnrollmentMapper.java
@Mapper
public interface EnrollmentMapper {
    // 插入选课记录
    @Insert("INSERT INTO enrollment (student_id, course_id) VALUES (#{studentId}, #{courseId})")
    int insertEnrollment(Enrollment enrollment);
}